<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <!--表单项，自定义组件-->
    <div id="app">
        精通的语言：
        <input type="checkbox" value="java" v-model="language">java<br />
        <input type="checkbox" value="php" v-model="language">php<br />
        <input type="checkbox" value="python" v-model="language">python<br />
        选中了{{language.join(",")}}
    </div>
    <script src="../node_modules/vue/dist/vue.js"></script>
    <script>
        new Vue({
            el: "#app",
            data: {
                language: []
            }
        });
    </script>
</body>

</html>